/**
 * 资源相关请求模块
 */

import request from '@/utils/request'

export const getResourcePages = (data) => {
  return request({
    method: 'GET',
    url: '/api/Module/Get',
    params: data
  })
}

export const getAllResources = () => {
  return request({
    method: 'GET',
    url: '/boss/resource/getAll'
  })
}
export const allocateRoleResources = (data) => {
  return request({
    method: 'POST',
    url: '/boss/resource/allocateRoleResources',
    data
  })
}

export const getRoleResources = (id) => {
  return request({
    method: 'GET',
    url: `/api/Module/Get/${id}`,
  })
}
